package utils

func GetStrDef(str string, def string) string {
	if str == "" {
		return def
	}
	return str
}

func GetInt64Def(str string, def int64) int64 {
	if str == "" {
		return def
	}
	i, err := strToInt64(str, 1)
	if err != nil {
		return def
	}
	return i
}
